package com.carlton.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = ">distributed-id-server", fallbackFactory = DistributedIdFeignFallbackFactory.class)
public interface DistributedIdFeign {

	@GetMapping(value = "/api/snowflake/get/{key}")
	public String getSnowflakeID(@PathVariable("key") String key);

}
